package org.example.springboot3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.example.springboot3.domain.Activities;
import org.example.springboot3.service.ActivitiesService;
import org.example.springboot3.mapper.ActivitiesMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xu264
* @description 针对表【activities】的数据库操作Service实现
* @createDate 2025-05-26 13:27:59
*/
@Service
public class ActivitiesServiceImpl extends ServiceImpl<ActivitiesMapper, Activities>
    implements ActivitiesService{
    @Resource
    private ActivitiesMapper activitiesMapper;

    @Override
    public List<Activities> getActivitiesByOrganizerId(String id) {
        return activitiesMapper.getActivitiesByOrganizerId(id);
    }
    public List<Activities> searchActivities(String keyWord){
        return activitiesMapper.searchActivities(keyWord);
    }
    public int auditActivity(String id,String status){
        return activitiesMapper.updateAuditStatus(id,status);
    }
    public int updateActivitySelective(Activities activities){
        return activitiesMapper.updateActivitySelective(activities);
    }
}




